
package com.zsrt.day20170506.socket;

import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * 服务器端
 * @author jmj
 * @date 2017年5月6日
 * @time 下午4:22:24
 */
public class ServerSocketTest {

	public static void main(String[] args) throws Exception {
		
		System.out.println("sever start ok..");
		ServerSocket ss = new ServerSocket(8888);
		
		//接收服务端消息
		Socket s = ss.accept();
		
		OutputStream os = s.getOutputStream();
		
		String a = "hello jiamengju";
		
		
		
	}
}
